package cn.powertime.evaluation.facade;

import cn.powertime.evaluation.entity.KbKnowledgeBase;
import cn.powertime.evaluation.entity.KbKnowledgeBaseContent;
import cn.powertime.evaluation.vo.ParamPageVo;
import cn.powertime.evaluation.vo.ReqKnowledgeBaseSearchVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * <p>
 * 知识库目录表 服务类
 * </p>
 *
 * @author Yang Xin
 * @since 2019-09-27
 */
public interface KbKnowledgeBaseFacade {

    /**
     * 知识库目录列表
     *
     * @param paramPageVo 参数vo
     * @return KbKnowledgeBase
     */
    IPage<KbKnowledgeBase> knowledgeBaseList(ParamPageVo<ReqKnowledgeBaseSearchVo> paramPageVo);

    /**
     * 目录详情
     *
     * @param id 目录id
     * @return
     */
    KbKnowledgeBase details(Long id);

    /**
     * 知识库内容
     *
     * @param rootId 目录id
     * @return
     */
    List<KbKnowledgeBaseContent> content(Long rootId);

}
